package com.supreme.orderserver.feignapi;

import com.supreme.commonentity.mysql.primary.BizQuality;
import com.supreme.commonboot.utils.AjaxResp;
import com.supreme.orderserver.service.QualityService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "feign.quality")
public class QualityApiCtrl {

    @Resource
    private QualityService qualityService;

    @PostMapping(value = "create")
    public AjaxResp createQuality(@RequestBody BizQuality quality) {
        qualityService.createQuality(quality);
        return AjaxResp.instance();
    }
}
